/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.ex;

/**
 * <p>Project: jse2303 - Demo
 * <p>Powered by webrx On 2023-07-14 16:49:51
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {


    public static void main(String[] args) {
        //User user = new User(10, "admin", "123");
        //System.out.println(user.name());
        //System.out.println(user);

        //User u = new User();
        //System.out.println(u);

        class Book {
            private int id;
            private String name;

            public Book(int id, String name) {
                this.id = id;
                this.name = name;
            }

            @Override
            public String toString() {
                return "Book{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        '}';
            }
        }

        Book b = new Book(11, "《java入门》");
        System.out.println(b);

        //
        //Enum2 e = Enum2.RED; //第一次执行，会自动new出三个Enum2对象
        //System.out.println("---------------------");
        //
        //e = Enum2.BLUE;
        //switch (e) {
        //    case BLUE:
        //        System.out.println("aaaaaaa");
        //        break;
        //
        //    case GREEN:
        //        System.out.println("bbbb");
        //        break;
        //
        //    case RED:
        //        System.out.println("cccc");
        //        break;
        //
        //    default:
        //        System.out.println("other");
        //        break;
        //}


        //执行 保存到mysql中
        //Db db = new DbOracle();
        //save(db);

        //var in = new Out.In();

        //Out.In in = new Out().new In();

        //System.out.print();


        //Out.out.print(23);
        //
        //Son son = new Son();
        //System.out.println("----------------");
        //
        //Son son2 = new Son();

    }

    public static void save(Db db) {
        db.save();
    }
}

